<?php


class FrmUploadScriptJS {
    private $iframe;
    private $easyFormDeleteJS;


    public function __construct($scriptsList=array()) {
        $this->iframe=new Iframe($src="../Forms/uploadingJS.php", $name="uploadScriptJS", $id="uploadScriptJS", $scrolling="", $frameborder="0", $width="100%", $height="160px", $class="container");
        
        $this->easyFormDeleteJS=new EasyForm($name="deleteJS", $id="deleteJS", $method="post", $action="../Events/EventsFrmUploadScriptJS.php", $fieldSetLegend="Delete ScriptJS", $target="", $class="", $enctype="", $validation="");
            $this->easyFormDeleteJS->addSelectionList($colSpan="", $label="Script JS to delete", $name="ScriptsJSList", $id="ScriptsJSList", $class, $size, $multiple, $disabled, $tabindex, $events);
            $this->easyFormDeleteJS->setOptionsSelectionList($label="Script JS to delete", $optionsSelectionList=$scriptsList, $selected="");
            $this->easyFormDeleteJS->addButton($colSpan="2", $label=" ", $name="delete", $id="delete", $alt="delete", $value="delete", $note="", $type="button", $disabled="",$class="", $imageSrc="", $title="", $imageWidth="", $imageHeight="", $imageBorder="0", $events=array("onclick"=>"POSTMethodSend('delete','ScriptsJSList','divContent','../Events/EventsFrmUploadScriptJS.php')"));
        
    }
    public function setVisible($visible=true){
        if($visible==true){
            $this->iframe->show();
            //-------
            $sections=explode("_", $_SESSION['sections']);
            if(count($sections)==3){
                $this->easyFormDeleteJS->show($cols=1, $rows=2);
            }
        }
    }
    
}

?>
